package cn.com.xuhx.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 部门
 */
public class Department implements Serializable {

    private Integer id;

    private String departmentname;

    //当前实体与关联实体是一对多的关系
    private List<Equipment> equipmentList;

    public Department(Integer id, String departmentname, List<Equipment> equipmentList) {
        this.id = id;
        this.departmentname = departmentname;
        this.equipmentList = equipmentList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Department() {
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public List<Equipment> getEquipmentList() {
        return equipmentList;
    }

    public void setEquipmentList(List<Equipment> equipmentList) {
        this.equipmentList = equipmentList;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", departmentname='" + departmentname + '\'' +
                ", equipmentList=" + equipmentList +
                '}';
    }
}
